<template>
  <div class="error">
    <div class="error-left"></div>
    <div class="error-right">
      <div class="right-info">
        <h2>你访问的界面不存在!</h2>
        <h3>管理员说你不能进入此界面</h3>
        <h5>请检查你的url地址是否正确,或者点击下面的按钮回到首页</h5>
        <button @click="jumper_btn">返回到首页</button>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from "vue-router";
const router = useRouter();
const jumper_btn = () => {
  router.push('home');
}
</script>
<script lang="ts">
export default {
  name:"Error"
}
</script>

<style scoped>
.error{
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.error-left{
  flex:1;
  height: 100vh;
  background: url('@/assets/images/error_images/404.png') no-repeat;
}

.error-right{
  flex:1;
  height:100vh;
  padding:150px;
}
.right-info{
  width:100%;
  height: 100%;
}
.right-info h2{
  font-size: 25px;
  font-weight: bold;
  color:blue;
}
.right-info h3{
  font-size: 18px;
  font-weight: bold;
  margin: 30px 0 20px 0;
}
.right-info button{
  width:130px;
  height: 35px;
  margin:50px 0;
  background: #5959e4;
  color:white;
  border-radius: 20px;
  cursor: pointer;
}
.right-info button:active{
  background: #7785ee;
  transform: scale(0.98);
}
</style>